// const utility = require('utility');
// let res = utility.md5('xueli123456');
// let res = utility.md5('wangxueli','base64');
// let res = Buffer.from('王雪丽');
// let res = utility.md5(Buffer.from('王雪丽'),'base64');
// utility.md5(要加密的字符串|buffer类型的,加密成什么类型) 默认加密成32位的，也可以加密成base64格式的
// let res = utility.md5([1,2,3],);  //The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. 
// Received type number (123456)
// let res = utility.md5('wang');
// console.log(res);
// console.log(typeof res);


// 生成token
const jwt = require('jsonwebtoken');
// jwt.sign({foo:bar},'bj109',{expiresIn:'1day',algorithm:'HS256'});
// jwt.sign(要在token中保存的东西，加密的key，过期时间或者算法);